<?php
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'资迅管理'=>array($this->pre_module_url.'/news/admin'),
	'推荐位管理'=>array('newsrecommend'),
	'添加推荐位'
);
?>

<div class="addtype_tab">
	<div class="bd" id="addClass">
                
		<?php $form=$this->beginWidget('CActiveForm', array(
                 'action'=>$this->pre_module_url.'/positions/ifposition',
                 'method'=>'post',
        )); ?>
        <div class="add_type">
         	<?php echo CHtml::submitButton(Yii::t('adm','Save Date'),array('class'=>'mem_btn mem_btn07 mr5')); ?>
         	<span class="c_666">勾选以下列表中要添加广告位的页面，再点击保存信息</span>
        </div>
		<div class="type_list">
			<table class="list_table list_table2" width="100%" cellpadding="0"
				cellspacing="0">
				<tr>
					<th width="" class="pl15">菜单名称</th>
					<th width="25%">菜单地址</th>
					<th width="23%">菜单类型</th>
					<th width="14.5%">状态</th>
					<th width="14.5%">选择</th>
				</tr>
			</table>
			<ul class="main_class">
                            <?php $this->widget('zii.widgets.CListView', array(
                                'dataProvider'=>Nav::model()->getTop(),
                                'itemView'=>'_nav_view',
                                'emptyText'=>"",
                                'template'=>'{items}',
                                'enablePagination'=>'false',
                                'summaryText'=>'',
                                'tagName'=>'ul',
                                'itemsCssClass'=>'',
                                'htmlOptions'=>array('class'=>'type_list')
                            )); 
                            ?>
            </ul>
		</div>
        <?php $this->endWidget(); ?>
   </div>
</div>

<script type="text/javascript">
$(function(){
	$('ul').addClass('b_db');
	$('.ico_fold').bind('click',function(){
		$(this).parent().parent().next('ul').toggle();
		$(this).toggleClass('ico_del');
		$(this).toggleClass('ico_fold');
	});
});
</script>